const mongoose = require("./db");//引入mongoose

//定义UserSchema
const UserSchema = new mongoose.Schema({
    username: { type: String, required: true },
    password: { type: String, required: true },
})

//创建User模型
const User = mongoose.model("Users", UserSchema, "Users");

//导出User模型
module.exports = User;